<table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
	<tr>
		<td>
			<span style="float: left;">后台管理中心&nbsp;&raquo;&nbsp;头条列表</span>
			<span style="float: right;">
			    <a href="./?controller=title&action=add">+ 添加</a>
				<a href="javascript:history.go(-1);">&lt;- 返回</a>
			</span>
		</td>
	</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
	<tr class="header">
		<td colspan="7">头条列表</td>
	</tr>
	<tr class="category" align="center">
		<td width="10%">ID</td>
		<td width="20%">描述</td>
		<td width="30%">链接</td>
		<td width="10%">添加时间</td>
		<td width="10%">排序</td>
		<td width="10%">是否显示</td>
		<td width="10%">操作</td>
	</tr>
<?php
foreach ($this->data as $row)
{
    $rank = $row['is_hidden'] == 0 ? '显示' : '隐藏';
	echo <<<EOF
	<tr>
		<td class="altbg1" align="center">{$row['id']}</td>
		<td class="altbg2" align="center">{$row['remark']}</td>
		<td class="altbg1" align="center">{$row['url']}</td>
		<td class="altbg2" align="center">{$row['createdate']}</td>
		<td class="altbg1" align="center">{$row['rank']}</td>
		<td class="altbg2" align="center">{$rank}</td>
		<td class="altbg1" align="center">
		    <a href="./?controller=title&action=add&id={$row['id']}">编辑</a><br />
		    <a href="./?controller=title&action=delete&id={$row['id']}">删除</a>
		</td>
	</tr>
EOF;
}
?>
	<tr class="category">
		<td align="center" colspan="7">
			<?php echo $this->paging; ?>
		</td>
	</tr>
</table>
